import request from '@/utils/request'

// 查询范围排放量列表
export function listEmissionsBreakdown(query) {
  return request({
    url: '/result/emissionsBreakdown/list',
    method: 'get',
    params: query
  })
}

// 查询范围排放量详细
export function getEmissionsBreakdown(scopeId) {
  return request({
    url: '/result/emissionsBreakdown/' + scopeId,
    method: 'get'
  })
}

// 新增范围排放量
export function addEmissionsBreakdown(data) {
  return request({
    url: '/result/emissionsBreakdown',
    method: 'post',
    data: data
  })
}

// 修改范围排放量
export function updateEmissionsBreakdown(data) {
  return request({
    url: '/result/emissionsBreakdown',
    method: 'put',
    data: data
  })
}

// 删除范围排放量
export function delEmissionsBreakdown(scopeId) {
  return request({
    url: '/result/emissionsBreakdown/' + scopeId,
    method: 'delete'
  })
}

// 导出范围排放量
export function exportEmissionsBreakdown(query) {
  return request({
    url: '/result/emissionsBreakdown/export',
    method: 'get',
    params: query
  })
}